
#ifndef USER_INCLUDE
#define USER_INCLUDE

#include "UserSocket.h"
#include "Game/WorkThread.h"

class User
{
public:
	User(UserSocket *socket);
	~User();

public:
	WorkThread *thread;

public:
	void Send(String s,int size) {if(write_stream)write_stream->Write(s.c_str(),size);}

public:
	UserSocket *socket;
	
	OutputStream *read_stream;
	InputStream *write_stream;

};

#endif //USER_INCLUDE
